import request from '@/config/axios'

export interface AuthTypeVO {
                    code: string
                    description: string
                    id: number
}

// 查询认证类型列表
export const getAuthTypePage = async (params) => {
  return await request.get({ url: '/vrs/auth-type/page', params })
}

// 查询认证类型详情
export const getAuthType = async (id: number) => {
  return await request.get({ url: '/vrs/auth-type/get?id=' + id })
}

// 新增认证类型
export const createAuthType = async (data: AuthTypeVO) => {
  return await request.post({ url: '/vrs/auth-type/create', data })
}

// 修改认证类型
export const updateAuthType = async (data: AuthTypeVO) => {
  return await request.put({ url: '/vrs/auth-type/update', data })
}

// 删除认证类型
export const deleteAuthType = async (id: number) => {
  return await request.delete({ url: '/vrs/auth-type/delete?id=' + id })
}

// 导出认证类型 Excel
export const exportAuthTypeApi = async (params) => {
  return await request.download({ url: '/vrs/auth-type/export-excel', params })
}

export const listAuthTypeDict = async () => {
  return await request.get({ url: '/vrs/auth-type/list-dict' })
}
